<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta name="author" content="中文Lee 360811363@qq.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../css/public.css" media="all">
    <!--
    * [LupMisAllowedSync]
    * 本代码为系统自动生成代码，请根据自己业务进行修改;
    * 生成时间 2022-04-13 10:14:18;
    * 版权所有 2020-2022 lizhongwen，并保留所有权利;
    * 说明: 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用；不允许对程序代码以任何形式任何目的的再发布;
    * 作者: 中文Lee;
    * 作者主页: http://www.lizhongwen.com;
    * 邮箱: 360811363@qq.com;
    * QQ: 360811363;
    -->
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div>
            <form class="layui-form search-box" action="">
                <div class="layui-inline">
                     <input name="title" placeholder="标题"  data-check-type="none" range="" sp-start-end="" class="layui-input " autocomplete="off">
                </div>
                <div class="layui-inline">
                    <input class="layui-input" name="remarks" placeholder="简介" autocomplete="off">
                </div>
                <div class="layui-inline">
                    <input class="layui-input" name="content" placeholder="内容" autocomplete="off">
                </div>
                <div class="layui-inline">
                     <input name="time_stamp" placeholder="时间戳" readonly data-check-type="timeMs" range="~" sp-start-end="000~999" class="layui-input datetime" autocomplete="off">
                     <input type="hidden" name="time_stamp_between_start">
                     <input type="hidden" name="time_stamp_between_end">
                </div>
                <div class="layui-inline">
                     <input name="birthday" placeholder="生日"  data-check-type="ymd" range="" sp-start-end="" class="layui-input date" autocomplete="off">
                </div>
                <div class="layui-inline">
                    <select name="order_type" tips="订单类别" class="dict-select" dict-code="test_order:type">
                        <option value="">订单类别</option>
                    </select>
                </div>
                <div class="layui-inline">
                    <div id="user_id" search="tel,user_name" name="user_id" tips="用户" class="db-table-xmMultiSelect data-check-type-none field-type-varchar" api="lup/testUser/lists"  key="id" val="tel,user_name" cut="-" style="min-width:200px"></div>
                </div>
                <div class="layui-inline">
                    <div id="order_tags" name="order_tags" tips="订单标签" class="dict-xmMultiSelectNoPage" dict-code="order:tags" style="min-width:200px"></div>
                </div>
                <div class="layui-inline">
                    <div id="goods_type" name="goods_type" tips="产品分类" class="tree-parent-xmMultiSelectNoPage data-check-type-none field-type-varchar" api="sys/catalog/lists"  key="id" val="name" cut="-" pid="1" style="min-width:200px;max-width: 600px;"></div>
                </div>
                <div class="layui-inline">
                    <div id="agent_id" search="agent_name" name="agent_id" tips="代理商" class="db-table-xmSelect data-check-type-none field-type-bigint" api="lup/testAgent/lists"  key="id" val="agent_name" cut="-" style="min-width:200px"></div>
                </div>
                <div class="layui-inline">
                     <input name="time" placeholder="时间戳（秒）" readonly data-check-type="time" range="~" sp-start-end="" class="layui-input datetime" autocomplete="off">
                     <input type="hidden" name="time_between_start">
                     <input type="hidden" name="time_between_end">
                </div>
                <div class="layui-inline">
                     <input name="create_time" placeholder="创建时间" readonly data-check-type="ymdhis" range="~" sp-start-end="" class="layui-input datetime" autocomplete="off">
                     <input type="hidden" name="create_time_between_start">
                     <input type="hidden" name="create_time_between_end">
                </div>
                <div class="layui-inline">
                    <button type="submit" class="layui-btn" lay-submit lay-filter="data-search-btn">搜 索</button>
                </div>

            </form>
        </div>
        <table class="layui-hide" id="data-list" lay-filter="data-list"></table>
    </div>
</div>
<script src="../../../js/run.js"></script>
<script src="./custom.js"></script>
<script type="text/javascript">
    $init(function() {
        initDictData('search');
        initDbTableData('search');
        initTreeParentData('search');
        initCalendar();
        pageInit(function(pageInfo, toolbarHtml) {
            var jump = pageInfo.jump;
            var queryUrl = pageInfo.query_url;
            var tableName = pageInfo.table_name;
            var cols = [
                { type: "checkbox" },
                { field: "system_serial_number", title: "序号", width: 60, sort: true, align: "center", type: "numbers" },
                { field: "id", title: "ID", hide: true, width: 100, sort: true, align: "left" },
                { field: "title", title: "标题", sort: true, edit: true, align: "left" },
                { field: "remarks", title: "简介", sort: true, align: "left" },
                { field: "time_stamp", title: "时间戳", sort: true, align: "left", templet: function(d) { return timeStampFmt(d.time_stamp) } },
                { field: "birthday", title: "生日", sort: true, align: "left", templet: function(d) { return dateFormat(d.birthday) } },
                { field: "order_type", title: "订单类别", sort: true, align: "left", templet: function(d) { return listDictData("test_order:type", d.order_type) } },
                { field: "user_id", title: "用户", sort: true, align: "left", templet: function(d) { return listResData("tel,user_name", "-", d.user_id_res) } },
                { field: "order_tags", title: "订单标签", sort: true, align: "left", templet: function(d) { return listDictData("order:tags", d.order_tags) } },
                { field: "goods_type", title: "产品分类", sort: true, align: "left", templet: function(d) { return listResData("name", "-", d.goods_type_res) } },
                { field: "goods_photos", title: "商品图片", sort: true, align: "left", templet: function(d) { return listUpload(d.id+"_goods_photos", d.goods_photos, "") } },
                { field: "certificate_photos", title: "证据", sort: true, align: "left", templet: function(d) { return listUpload(d.id+"_certificate_photos", d.certificate_photos, "") } },
                { field: "agent_id", title: "代理商", sort: true, align: "left", templet: function(d) { return listResData("agent_name", "-", d.agent_id_res) } },
                { field: "single_file_remarks", title: "单附件(带描述)", sort: true, align: "left", templet: function(d) { return listUpload(d.id+"_single_file_remarks", d.single_file_remarks, "") } },
                { field: "multi_file_Remarks", title: "多附件(带描述)", sort: true, align: "left", templet: function(d) { return listUpload(d.id+"_multi_file_Remarks", d.multi_file_Remarks, "") } },
                { field: "time", title: "时间戳（秒）", sort: true, align: "left", templet: function(d) { return timeStampFmt(d.time) } },
                { field: "c_time", title: "yyyymmddhhiiss", sort: true, align: "left", templet: function(d) { return dateFormat(d.c_time) } },
                { field: "create_time", title: "创建时间", width: 140, sort: true, align: "left", templet: function(d) { return dateFormat(d.create_time) } }
            ];
            loadData(base_gateway + queryUrl, cols, toolbarHtml);
            // 监听搜索操作
            doSearch();
            //监听操作事件(添加 删除 编辑)
            toolbarTap(function(data, pars, event) {
                //自定义js Tap回调
                toolbarTapCustom(data,pars,event);
            });
            //监听单元格编辑
            tableEdit(tableName);
        });
    });
</script>
</body>
</html>
